using MediatR;
using B.S.RbacData.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace SupplierCustomerManagement.Write.API.Applications.Commands.attachments
{
    /// <summary>
    /// 批量删除附件命令
    /// </summary>
    public class BatchDeleteAttachmentsCommand : IRequest<ApiResult<bool>>
    {
        /// <summary>
        /// 附件ID列表
        /// </summary>
        [Required(ErrorMessage = "附件ID列表不能为空")]
        public List<int> Ids { get; set; } = new List<int>();

        /// <summary>
        /// 是否同时删除存储中的文件
        /// </summary>
        public bool DeleteFromStorage { get; set; } = true;

        /// <summary>
        /// 删除人ID
        /// </summary>
        public int? DeletedBy { get; set; }
    }
} 